<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="hu" xml:lang="hu" dir="ltr">
<head>
<title>GN-Schweisstechnik</title>
<?php echo $javascript->link("cart",true); ?>
<?php echo $scripts_for_layout; ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
    echo $html->css(array(
        "960",
        "reset",
        "text",
        "admin_style"
    ));
?>

</head>
<body>
<div id="outerdiv">
    <div id="banner" class="container_16">
    <!-- Ide j�n a login r�sz -->
        <div id="login">
            <?php
            if ($session->check('Message.auth'))
                $session->flash('auth');

                echo $form->create('User',array('controller'=>'users','action'=>'login'));
                echo $form->input('email');
                echo $form->input('password');
                echo $form->end('Login');
            ?>
            <div class="registration">Registration</div>
        </div>
    </div>
    <div id="router" class="container_16">
    <!-- �tvonalk�vet�s -->
        <div id="language">
            <div id="de_flage"><a href="#"><?php echo $html->image("design/de_flage.jpg"); ?></a></div>
            <div id="en_flage"><a href="#"><?php echo $html->image("design/en_flage.jpg"); ?></a></div>
        </div>

        <div id="router_content">

        </div>

    	<div id="search">
            <form action="http://www.google.com/search" method="get">
                <div class="clear-block">
                    <input type="hidden" value="UTF-8" name="ie"/>
                    <input type="hidden" value="UTF-8" name="oe"/>
                    <input type="hidden" value="www.gn-schweisstechnik.de" name="domains"/>
                    <input type="hidden" value="www.gn-schweisstechnik.de" name="sitesearch"/>
                    <input class="form-text" type="text" value="" maxlength="255" size="20" name="q"/>
                    <!--<a href="/kereses">Részletes</a>-->
                    <input class="form-submit" type="submit" value="Search" name="btnG"/>
                </div>
            </form>
        </div>
    </div>

    <div id="maindiv" class="container_16">

    	<div id="menu">
    	  <!--<div class="menu_a_first">
            	<div class="menu_a ">
                    <?php echo $html->link(
                        __("Administration",true)
                        );
            	   ?>
            	</div>
        	</div>-->
        	<?php if($is_logged):?>

                <div class="menu_a_title"><div>Categories</div></div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Categoies",true),
                            array('controller'=>'categories','action'=>'admin_index')
                            );
                       ?>
                    </div>
                </div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Add new category",true),
                            array('controller'=>'categories','action'=>'admin_add')
                            );
                       ?>
                    </div>
                </div>     

                <div class="menu_a_title"><div>Orders</div></div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Orders index",true),
                            array('controller'=>'orders','action'=>'admin_index')
                            );
                       ?>
                    </div>
                </div>        

                <div class="menu_a_title"><div>Products</div></div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Products index",true),
                            array('controller'=>'products','action'=>'admin_index')
                            );
                       ?>
                    </div>
                </div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Add product",true),
                            array('controller'=>'products','action'=>'admin_add')
                            );
                       ?>
                    </div>
                </div>

                <div class="menu_a_title"><div>Users</div></div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Users list",true),
                            array('controller'=>'users','action'=>'admin_index')
                            );
                       ?>
                    </div>
                </div>
                <div class="menu_a_middle">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Add new users",true),
                            array('controller'=>'users','action'=>'admin_add')
                            );
                       ?>
                    </div>
                </div>

                <div class="menu_a_last">
                    <div class="menu_a">
                        <?php echo $html->link(
                            __("Logout",true),
                            array('controller'=>'users','action'=>'logout')
                            );
                       ?>
                    </div>
                </div>
        	<?php endif; ?>
        </div>

        <div id="main_container">

            <div id="main_content">

                <?php $session->flash(); ?>
                <?php echo $content_for_layout; ?>
			</div>
        </div>
        <!-- #e4e5e7 a szín-->
    <!-- Tartalom -->
    </div>

    <div id="footer" class="container_16">
    <!-- Footer men� -->
        <div id="footer_menu">
            <a href="#">Impressum</a> | <a href="#">GTC</a> | <a href="#">Contact</a> | <a href="#">Webshop</a>
        </div>
        <div id="footer_copyright"> GN Schweisstechnik © 2009 </div>

    </div>
</div>
</body>
</html>